<template>
      <uni-popup ref="couponPop">
                <view class="inputDialog">
                    <view class="title">
                        {{ couponPopTips }}
                    </view>
                    <view class="button-bottom">
                        <view class="cancel" @click="closeCoupon">取消</view>
                        <view @click="closeCoupon" class="green_words"
                            >确定</view
                        >
                    </view>
                </view>
            </uni-popup>
</template>

<script>
export default {
    name:'CouponPop',
    props:[
        'type', //waitPay:待支付  pay: 支付页面
        'couponPopTips'
    ],
    data(){
        return{
            // couponPopTips: '使用本券请选择中国农业银行支付', //优惠券提示文案

        }

    },
    methods:{
  // 关闭优惠券提示文案对话框
        closeCoupon() {
            this.selectId = '0';
            this.$refs.couponPop.close();
        //    if (type=='waitPay'){
        //     this.$emit('couponClose', { wxPay:'nonghang',orderValue:'nonghang'})
        //    }

        },
    }
}

</script>

<style lang="scss" scoped>

/* 弹出框 */
.inputDialog {
    width: 600rpx;
    border-radius: 10rpx;
    background-color: #ffffff;
}

.inputDialog > .title {
    text-align: center;
    padding: 30rpx;
    font-size: 32rpx;
    line-height: 50rpx;
}

.button-bottom {
    display: flex;
    border-top: 1px solid #f0f0f0;
}

.button-bottom view {
    width: 50%;
    padding: 20rpx 0 20rpx 0;
    font-size: 32rpx;
    text-align: center;
}

.cancel {
    border-right: 1px solid #f0f0f0;
}

/* 绿色字体 */
.green_words {
    color: #62c0ad;
}

</style>